package com.dao.jdbc.beans;

import com.solveit.core.db2.annotations.Column;
import com.solveit.core.db2.annotations.Entity;
import com.solveit.core.db2.annotations.Id;
import com.solveit.core.db2.annotations.Table;

@Entity
@Table(name = "customer")
public class Customer extends com.bean.Customer {

	public static final int ID = 1;
	@Id(auto = true)
	@Column(name = "id", alias = ID, nullable = false)
	private Integer id;
	
	public static final int FIRST_NAME = 2;
	@Column(name = "first_name", alias = FIRST_NAME, nullable = true)
	private String firstName;

	public static final int LAST_NAME = 3;
	@Column(name = "last_name", alias = LAST_NAME, nullable = true)
	private String lastName;

	public static final int AGE = 4;
	@Column(name = "age", alias = AGE, nullable = true)
	private Integer age;

	public Customer() {
	}

	public Customer(String aFirstName, String aLastName, Integer aAge) {
		firstName = aFirstName;
		lastName = aLastName;
		age = aAge;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String aFirstName) {
		super.setFirstName(aFirstName);
		firstName = aFirstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String aLastName) {
		super.setLastName(aLastName);
		lastName = aLastName;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer aAge) {
		super.setAge(aAge);
		age = aAge;
	}
}
